import request from '@/utils/request'

// 查询国债期货信息列表
export function queryBondFutureInfoList(query) {
    return request({
        url: '/bondFutures/queryBondFutureInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 新增国债期货信息
export function addBondFutureInfo(data) {
    return request({
        url: '/bondFutures/addBondFutureInfo.action',
        method: 'post',
        data: data
    })
}

// 修改国债期货信息
export function updateBondFutureInfo(data) {
    return request({
        url: '/bondFutures/updateBondFutureInfo.action',
        method: 'put',
        data: data
    })
}

// 删除国债期货信息
export function delBondFutureInfo(data) {
    return request({
        url: '/bondFutures/delBondFutureInfo.action',
        method: 'delete',
        data: data
    })
}

// 查询国债期货行情列表
export function getBondFuturePriceList(query) {
    return request({
        url: '/bondFutures/queryBondPriceList.action',
        method: 'get',
        params: query
    })
}

// 查询国债期货行情曲线信息
export function getBondFuturePriceCurve(query) {
    return request({
        url: '/bondFutures/queryBondPriceCurve.action',
        method: 'get',
        params: query
    })
}

